package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 存放每篇内容的统计数据对象 statistics_content_stats
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
public class StatisticsContentStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 统计数据的唯一标识符
 */
    private Long statId;

    /** 关联的内容编号
 */
    private Long contentId;

    /** 内容的浏览量
 */
    @Excel(name = "内容的浏览量 ")
    private Long views;

    /** 内容的点赞数量
 */
    @Excel(name = "内容的点赞数量 ")
    private Long likes;

    /** 内容的评论数量
 */
    @Excel(name = "内容的评论数量 ")
    private Long comments;

    /** 统计数据的生成时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计数据的生成时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setStatId(Long statId) 
    {
        this.statId = statId;
    }

    public Long getStatId() 
    {
        return statId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Long getViews() 
    {
        return views;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setComments(Long comments) 
    {
        this.comments = comments;
    }

    public Long getComments() 
    {
        return comments;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("statId", getStatId())
            .append("contentId", getContentId())
            .append("views", getViews())
            .append("likes", getLikes())
            .append("comments", getComments())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
